package com.swap.business.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 对象 network_interface
 *
 * @author swap
 * @date 2024-06-28
 */
@Getter
@Setter
public class NetworkInterface implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 设备info关联表ID
     */
    private String recordId;

    /**
     * 接口序号
     */
    private Integer interfaceId;

    /**
     * 接口描述
     */
    private String interfaceDesc;

    /**
     * 入口流量，单位字节byte
     */
    private BigDecimal inboundTraffic;

    /**
     * 出口流量
     */
    private BigDecimal outboundTraffic;

    /**
     * 入口带宽占用率，单位%
     */
    private BigDecimal inboundBandwidthRate;

    /**
     * 出口带宽占用率，单位%
     */
    private BigDecimal outboundBandwidthRate;

    /**
     * 入口包转发错误率，单位%
     */
    private BigDecimal inboundPacketsErrorRate;

    /**
     * 出口包转发错误率，单位%
     */
    private BigDecimal outboundPacketsErrorRate;

    /**
     * 接口状态 0异常 1正常
     */
    private Integer status;

    /**
     * 采集时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date recTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String deviceId;

    private String equipmentUuId;

}
